Hands-On DevOps with Vagrant: Implement end-to-end DevOps and infrastructure management using Vagrant by Alex Braunton

Hands-On DevOps with Vagrant: Implement end-to-end DevOps and infrastructure management using Vagrant by Alex Braunton

Author:Alex Braunton [Braunton, Alex]
Language: eng
Format: azw3, epub
Tags: COM088000 - COMPUTERS / System Administration / General, COM088010 - COMPUTERS / System Administration / Linux and UNIX Administration, COM057000 - COMPUTERS / Virtual Worlds
Publisher: Packt Publishing
Published: 2018-10-16T16:00:00+00:00


Multi-Machine

In this chapter, you will learn about Vagrant's multi-machine feature. We will walk through various aspects of multi-machine, and by the end of this chapter you should have a good understanding of the following topics:

An introduction to Vagrant multi-machine

Multi-machine configuration in the Vagrantfile

Connecting multi-machines via networking

An introduction to Vagrant multi-machine

Using Vagrant's multi-machine feature, you can easily manage multiple Vagrant machines in one Vagrantfile. This can be useful if you wish to model your test environment in a similar way to your production environment. You can easily separate servers such as web servers, file servers, and database servers.

In this section, we will look at using multi-machine in the two following use cases:

In the first use case, we will look at managing three Vagrant machines. Here, we will create a basic load balancing setup, where one machine will distribute traffic between two machines that serve up a website.

In the second use case, we will be managing two Vagrant machines. We will create a web-based machine that serves a website and another machine, which runs a MySQL database. The web machine will communicate with the database machine to display data on the web page.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.